import request from '@/utils/request'

export function getUserlist(limit, offset,type,keywords) {
  return request({
    url: '/api/user/list',
    method: 'get',
    params: { limit,offset,type,keywords }
  })
}

export function addUser(userInfo) {
  return request({
    url: '/api/user/add',
    method: 'post',
    data: userInfo
  })
}

export function delUser(id) {
  return request({
    url: '/api/user/del',
    method: 'post',
    data: id
  })
}

export function updUser(userInfo) {
  return request({
    url: '/api/user/upd',
    method: 'post',
    data: userInfo
  })
}
